const path = require('path') // 使用commenjs模块化，引入path内置模块
// console.log(__dirname) // 绝对（物理）路径 C:\Users\15231\Desktop\Learn\webLearning\cavans_-jswarehouse1\daily_Projectslean\workflow\webpack\webpack-demo
// console.log(path.join(__dirname, "dist")) // \dist
module.exports = {
    mode: 'production',
    entry: './src/index.js',
    output: {
        filename: 'bundle.js',
        path: path.join(__dirname, 'dist')
    }
}
